chore: exclude prereleases from outdated packages#1457
chore: exclude prereleases from outdated packages#1457idleberg wants to merge 2 commits intonpmx-dev:mainfrom
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
2 Skipped Deployments
|
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
📝 WalkthroughWalkthroughThe composable module for tracking npm dependencies has been modified to improve version comparison logic. The code now computes a latestStable version that prioritises non-prerelease versions over prerelease versions. When the latest dist tag is identified as a prerelease, the implementation filters available versions to find the highest non-prerelease alternative. This latestStable value is then used in the outdated dependency resolution process. The change maintains backward compatibility for scenarios where insufficient version data exists. No public method signatures have been altered. 🚥 Pre-merge checks | ✅ 1 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (1 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
No actionable comments were generated in the recent review. 🎉 Comment |
|
I think we should honour the developer's decision to tag something as latest (but personally I would not tag an alpha or beta reease as latest) |
Agreed, but I've seen experienced developers struggling (or being aware of) distTags. One final thought: as a middleground, packages with such discrepancies could be highlighted in yellow rather than red, to raise awareness. Otherwise feel free to close this! |
|
I understand developers might not understand, but I think that could be raised with them directly. after all, tagging a beta release as |
|
I think a good approach would be to change the messaging on the bit of the UI that displayed the updated dependency to make it clear that this isn't a bug, e.g. something like the new latest version is 1.0.0-beta.0 btw I checked with pooya (author of c12) and it's intentional - so don't bug him about it! |
Fixes #1456. However, this might need some discussion because the problematic behaviour can be interpreted in two ways:
latest, and we should honour this decisionlatest, and we decided that*-alphaor*-betashould overrule the distTagWhat are your thoughts on this?